﻿(function () {
    CKEDITOR.plugins.add('reference',
	{
	    requires: ['dialog'],
	    init: function (editor) {
	        editor.addCommand('addreference', new CKEDITOR.dialogCommand('addreference'));
	        CKEDITOR.dialog.add('addreference', this.path + 'dialogs/reference.js');
	        editor.ui.addButton('AddReference', {
	            label: '插入常用参考文献',
	            command: 'addreference',
	            icon: this.path + 'reference.gif'
	        });
	    }
	});
})();